package com.zhihuitong.meeting.utils;

import android.widget.Toast;

import com.zhihuitong.meeting.global.MyApplication;


/**
 * 作者: 郭源
 * 日期: 2017/5/3
 * 描述:
 */
public class ToastUtils {
    private static Toast sToast;

    public static void showToast(String msg) {
        if (sToast == null) {
            sToast = Toast.makeText(MyApplication.context, msg, Toast.LENGTH_SHORT);
        }
        //如果这个Toast已经在显示了，那么这里会立即修改文本
        sToast.setText(msg);
        sToast.show();
    }





}
